.imessage_main {
    width: 320px;
    height: 100px;
    overflow: hidden;
    border-radius: 5px;
    background: #fff;
    position: absolute;
    top: 100px;
    left: 50%;
    margin-left: -160px;
    box-shadow: inset 0 0 0 1px hsla(0, 0%, 100%, .2),
        0 0.5em 1em rgba(0, 0, 0, .3);
    z-index: 999;
    animation-duration: .3s;
}

.imessage_head {
    width: 100%;
    height: 24px;
    background: #f7f7f7;
    padding: 0 10px;
    box-sizing: border-box;
    .center(flex);

    .head_desc {
        flex: 1;
        margin-left: 10px;
        font-size: 13px;
        .center(flex);
        justify-content: space-between;
    }
}

.imessage_content {
    width: 100%;
    padding: 10px;
    height: 69px;
    box-sizing: border-box;

    p {
        color: #303133;
        font-size: 14px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        word-break: break-all;
        text-overflow: ellipsis;
        overflow: hidden;
    }
}


@keyframes fadeInDown {
    from {
        opacity: 0;
        -webkit-transform: translate3d(0, -100%, 0);
        transform: translate3d(0, -100%, 0);
    }

    to {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

.fadeInDown {
    -webkit-animation-name: fadeInDown;
    animation-name: fadeInDown;
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        -webkit-transform: translate3d(0, -100%, 0);
        transform: translate3d(0, -100%, 0);
    }
}

.fadeOutUp {
    -webkit-animation-name: fadeOutUp;
    animation-name: fadeOutUp;
}